home *** CD-ROM | disk | FTP | other *** search
- /*\
- * This ARexx script is used with StageFrames to let you determine
- * how to reduce the number of frames in an anim smoothly.
- *
- * Usage: ReduceFrames <CurrentFrames> <WantedFrames>
- * Current frames is the number of frames currently in an anim.
- * Wanted frames is the number (less than CurrentFrames) that
- * you want an animation to have. ReduceFrames will give you
- * the paramters for the Range command (in the Project screen)
- * that you should use, and the StageFrames paramaters if they
- * are needed. If you want a 15 frame anim from a 30 frame
- * anim then you don't need to run StageFrames first. A 20
- * or 8 frame anim however, would.
- *
- * V1.0 Jan-14-94
- * IanSmith@psu.edu
- *
- \*/
-
- Parse Arg CurrentFrames FramesWanted .
- If FramesWanted="" Then Do
- Say "Usage: ReduceFrames <CurrentFrames> <WantedFrames>"
- Say " More help can be found in the header of this file."
- Exit
- End
-
- Do i=1 To FramesWanted
- If (CurrentFrames*i/FramesWanted)//1=0 Then Do
- If i=1 Then
- i=CurrentFrames/FramesWanted
- Else
- Say "1> StageFrames <staging>" i
- Say "Render every" i||Word("th st nd rd th th th th th th", i//10+1) "frame. (1,"i*CurrentFrames","i")"
- Exit
- End
- End
-